<template>
  <div>
     用户 特权
    <div>
      <el-button type="primary">新增</el-button>
      <el-table :data="rolePrivilege" style="width: 100%">
        <el-table-column prop="id" label="序号" width="180">
        </el-table-column>
        <el-table-column prop="role_id" label="角色序号" width="180">
        </el-table-column>
        <el-table-column prop="privilege_id" label="特权序号" width="180"> </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
import { get } from "@/utils/request";
export default {
  data() {
    return {
      rolePrivilege: [],
      visible: false
    };
  },
  methods: {
    loadRolePrivilegen() {
      let url = "http://localhost:8888/rolePrivilege/query";
      get(url).then(resp => {
        this.rolePrivilege = resp.data;
      });
    }
  },
  created() {
    this.loadRolePrivilegen();
  }
    
};
</script>

<style lang="sass" scoped>

</style>
